Skip to content

Conversation

TeodorTaushanov
Copy link
Member

@TeodorTaushanov TeodorTaushanov commented Jul 22, 2025

  • DragRegistry no longer handles global drag-related event listeners.
  • setDraggedElement and clearDraggedElement methods are added. subscribe/unsubscribe are removed.
  • Automatic drag-and-drop from links or other elements has been removed.

Jira: BGSOFUIRODOPI-3442
fixes #11185

@TeodorTaushanov TeodorTaushanov changed the title fix(DnD): fix drag and drop in Shadow DOM wip(DnD): fix drag and drop in Shadow DOM Jul 29, 2025
@TeodorTaushanov TeodorTaushanov changed the title wip(DnD): fix drag and drop in Shadow DOM fix(DnD): fix drag and drop in Shadow DOM Jul 31, 2025
@dimovpetar dimovpetar force-pushed the drag_drop_shadow_dom branch from f18cca0 to ce1dc89 Compare August 6, 2025 10:06
@@ -404,7 +404,7 @@ class Table extends UI5Element {
@i18n("@ui5/webcomponents")
static i18nBundle: I18nBundle;

_events = ["keydown", "keyup", "click", "focusin", "focusout", "dragenter", "dragleave", "dragover", "drop"];
_events = ["keydown", "keyup", "click", "focusin", "focusout", "dragstart", "dragenter", "dragleave", "dragover", "drop", "dragend"];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

event order 👌 ❤️

@dimovpetar dimovpetar requested a review from aborjinik August 8, 2025 06:13
@TeodorTaushanov TeodorTaushanov dismissed aborjinik’s stale review August 25, 2025 11:37

We would like to keep the DragRegistry and TabContainer logic as simple as possible. We can create a new util that works for the case, where the dragged element is the one, which is clicked. I'll try prepare a change for this, so we can discuss it.

@TeodorTaushanov TeodorTaushanov merged commit fb561aa into main Aug 25, 2025
12 checks passed
@TeodorTaushanov TeodorTaushanov deleted the drag_drop_shadow_dom branch August 25, 2025 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Tree/DragDrop] Shadow DOM usage breaks DragDrop behaviour
3 participants